<?php
namespace App;

//use Illuminate\Database\Eloquent\Model;
use Zizaco\Entrust\EntrustRole;
use Validator;

class Role extends EntrustRole
{
	

	public function check($input){
        $validator = Validator::make($input, [
            'name' => 'required',
        ]);			
        if ($validator->fails()) {
            return $validator->errors()->first();
        }
		return 0;	
	}
	
}